<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div style="display: flex;text-align: center;justify-content: space-around">
    <fieldset>
        <legend>修改员工信息</legend>
        <form th:action="@{/emp/updateEmp}" method="post">
            <input type="hidden" name="id" th:value="${emp.id}"/>
            <label>员工姓名：<input type="text" name="name" placeholder="姓名" th:value="${emp.name}"/></label>
            <br>
            <label>员工地址：<input type="text" name="address" placeholder="地址" th:value="${emp.address}"/></label>
            <br>
            <label>员工薪水：<input type="text" name="salary" placeholder="薪水" th:value="${emp.salary}"/></label>
            <br>
            <label>员工部门：<input type="text" name="deptId" placeholder="部门Id" th:value="${emp.deptId}"/></label>
            <br>
            <input type="submit" value="修改" style="width: 100%;margin-top: 10px">
        </form>
    </fieldset>
</div>
</body>
</html>